package com.spt.springbootzhsx.service.suggest.Get_MTMC_mul_UWL_5;

import org.apache.hadoop.io.WritableComparable;
import org.apache.hadoop.io.WritableComparator;

/*
 **@Author:邓少勋
 **Created on 2022-06-10
 */
public class MU_Group extends WritableComparator {
    public MU_Group() {
        super(MUbean.class, true);
    }

    @Override
    public int compare(WritableComparable a, WritableComparable b) {
        //基于电影id分组，id相同的分为一组
        MUbean o = (MUbean) a;
        MUbean o1 = (MUbean) b;

        return o.getM_id().compareTo(o1.getM_id());
    }
}
